<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>homework</title>
		<style>
			.a1{
				color: red;
			}
			.a1:link{
				color: #ccc;
			}

			.a1:visited{
				color: #ccc;
			}
			.a1:hover{
				color:#B8B8B8 ;
			}
			.a1:active{
				color: #349DE9;
			}
/* ------------------------------------------------------			 */
			
			
			
			
		</style>
	</head>
	<body>
		<span><a href="#" class="a1">首页</a></span>
		<span><a href="#" class="a1">学习用品</a></span>
		<span><a href="#" class="a1">私人订制</a></span>
		
		<hr>
		<!-- -------------------------------------------------- -->
	
		<p><input type="text" id="input_onclick" placeholder="搜索笔记本电脑"> 
		<input type="button" id="btn" value="点击搜索" /></p>
		<span id="msg"></span>	
		<script>
			btn.onclick = function(){
				window.location.href = "./homework1.html";
				msg.innerHTML = '成功跳转'
				
			}
			
			
			
		</script>
		
	</body>
</html>